package com.sixth.system.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sixth.core.entity.DictData;
import com.sixth.core.vo.R;
import com.sixth.system.vo.DictDataVo;

import java.util.List;


public interface DictDataService {
    R<List<DictData>> selectByType(String type);

    R<Page<DictData>> selectByPage(DictDataVo dictDataVo);


    R<DictData> getByDictId(Long dictId);


    R<String> getDictTypeById(Long dictId);

    R<Page<DictData>> listByDataType(DictDataVo dictDataVo);

    boolean addUpdate(DictData dictData);

    R batchDelete(Long[] dictIds);
}
